<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="/MES_ADMIN_Project/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#btnDetail").click(function(){
			document.f1.action="employee_modify.do";
			document.f1.submit();
			opener.location.href="javascript:searchEmployee()";
			self.close();
		});
		$("#fire").click(function(){
			document.f1.action="fire.do";
			document.f1.submit();
			opener.location.href="javascript:searchEmployee()";
			self.close();
		});
	});
</script>
</head>
<body>
<form action="" name="f1" method="post">
<input type="hidden" name="employee_no" value="${dto.employee_no }">
<input type="hidden" name="registration_number1" value="${dto.registration_number1 }">
<input type="hidden" name="registration_number2" value="${dto.registration_number2 }">
<input type="hidden" name="day" value="${dto.day }">
	<table border="1">
		<tr>
			<th nowrap>
				사원 번호
			</th>
			<td nowrap>
				<c:out value="${dto.employee_no }"></c:out>
			</td>
			<th nowrap>
				사원 이름
			</th>
			<td nowrap>
				<input type="text" name="employee_name" value="${dto.employee_name }" >
			</td>
		</tr>
		<tr>
			<th>
				패스워드
			</th>
			<td>
				<input type="text" name="employee_password" value="${dto.employee_password }">
			</td>
			<th>
				관리자
			</th>
			<td>
				<input type="radio" name="employee_yn" value="Y" <c:if test="${ dto.employee_yn eq 'Y' }">checked="checked" </c:if>>Y
				<input type="radio" name="employee_yn" value="N" <c:if test="${ dto.employee_yn eq 'N' }">checked="checked" </c:if>>N
			</td>
		</tr>
		<tr>
			<th nowrap>
				부 서
			</th>
			<td nowrap>
				<input type="text" name="employee_department" value="${dto.employee_department }">
			</td>
			<th nowrap>
				주민 번호
			</th>
			<td nowrap>
				<c:out value="${dto.registration_number1 }"/>
				-<c:out value="${dto.registration_number2 }"/>
			</td>
		</tr>
		<tr>
			<th nowrap>
				핸드폰 번호
			</th>
			<td nowrap>
				<select  name="phone_no01" >
					<option value="${dto.phone_no01 }">${dto.phone_no01 }</option>
						<option value='010'>010</option>
						<option value='011'>011</option>
						<option value='016'>016</option>
						<option value='017'>017</option>
						<option value='018'>018</option>
						<option value='019'>019</option>
						<option value='0130'>0130</option>
				</select>
				-<input type="text" name="phone_no02" maxlength="4" size="4" value="${dto.phone_no02 }">
				-<input type="text" name="phone_no03" maxlength="4" size="4" value="${dto.phone_no03 }">
			</td>
			<th nowrap>
				입사일
			</th>
			<td nowrap>
				<c:out value="${dto.day }"/>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right" nowrap>
				<input type="button" value="수정" id="btnDetail"><input type="button" value="해고" id="fire">
			</td>
		</tr>
	</table>
</form>
</body>
</html>